<?php 
/****
布尔教育 高端PHP培训
培  训: http://www.itbool.com
论  坛: http://www.zixue.it
****/

if (empty($_POST)) {
	require('./index.html');
}else {
	require('./conn.php');
	$sql = "insert into msg1 (name,email,content) values ('$_POST[name]','$_POST[email]','$_POST[content]')";
	if(!mysqli_query($conn , $sql)){
		echo '留言失败';
	} else {
		echo '留言成功';
	}
}

?>